<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据绑定</title>
</head>
<body>
    <div id="root">
        单项数据绑定(v-bind): <input type="text" :value="msg"> <br>
        双向数据绑定(v-model): <input type="text" v-model ="msg" >
    </div>

	<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>
        new Vue ({
            el:'#root',
            data(){
                return {
                    msg:'xiba'
                }
            }
        })


    </script>
</body>
</html>